<!doctype html>
<html>license
<head>
  <meta charset="utf-8">
  <title>系统信息通知</title>

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="format-detection" content="telephone=no, email=no" />
  <!--[if IE]>
  <script src="../js/html5shiv.min.js"></script>
  <![endif]-->

  <link rel="stylesheet" href="../resource/weuimin.css" />
  <link rel="stylesheet" href="../resource/example.css" />

  <link  href="../resource/style.css" rel="stylesheet" type="text/css">
  <script src="../script/common.js" type="text/javascript" > </script>
  <script src="../resource/html5shivmin.js"></script>
  <script src="../resource/jquery214.js"></script>
  <script src="../resource/fastclick.js"></script>
  <script src="../resource/jqueryweui.js"></script>
  <script src="../resource/zeptomin.js"></script>
  <script src="../resource/picker.js"></script>
  <script src="../resource/pickercity.js"></script>
  <script src="../script/api.js"></script>
  <script>
  
      

/*
(1)转义“<”、“>”
(2)改半角空格为&nbsp;
(3)保留换行
*/
  apiready = function() {
           if(api.systemType == "ios"){
			   document.getElementById("statusBar").style.background = "#298cb4";
			}
           $api.fixStatusBar( $api.dom('header') );
           var html;
		      api.ajax({
			    url: Serverip + '/base/syuser!doNotNeedSessionAndSecurity_GetInfoList.sy',
				method: 'post',
				data: {
					values: {
						dw_sj:$api.getStorage('dw_sj'),
					}
				}
			}, function(data, err) {
			   $("#loadingToast").hide();
                 if(data.length<1){
	                alert("目前尚无接收到消息通知 ！ ");
	                location.href='cuser.html';
	                 }
	                else{ 
	                    for(var x=0;x<data.length;x++){
			               var getValue=data[x].TZNR;
                           var endValue=((getValue.replace(/<(.+?)>/gi,"&lt;$1&gt;")).replace(/ /gi,"&nbsp;")).replace(/\n/gi,"<br>");
  	                       html += ("<div class=\"tclass\" readonly=\"readonly\">发文单位：&nbsp;"+data[x].DW_NAME
	                                         +"<br>发文日期：&nbsp;"+data[x].TZSJ
	                                         +"&nbsp;&nbsp;&nbsp;&nbsp;<br>通知内容：&#13;&#10;&emsp;&emsp;<br>"+endValue+" </div>");
			                         }          		                         
	                       $("#t0").html(html);
	                    } 
			});
      }
</script>

  <style>
    .logo-license{margin-top:0px;}
    .left{font-weight:bold;}
    .info {margin-top: 5rem;}
    .btn-1 a {width: 90%;outline: none;border: none;background: #18b4ed;color: #fff;height: 5rem;line-height: 5rem;display: inline-block;border-radius: 0.4rem;font-size: 2rem;}
    .weui_cells_form input, .weui_cells_form label[for], .weui_cells_form textarea {-webkit-tap-highlight-color: rgba(0,0,0,0);}
    .weui_uploader_input {position: absolute;z-index: 1;top: 0;left: 0; width: 100%;height: 100%;opacity: 0;-webkit-tap-highlight-color: rgba(0,0,0,0);}
    .weui_uploader_input_wrp {float: left;position: relative;margin-right: 9px;margin-bottom: 9px;width: 77px;height: 77px;border: 1px solid #d9d9d9;}
    .weui_uploader_files {list-style: none;}
    .weui_uploader_file {font-size: 12px;color: #333;text-align: center;display: table-cell;vertical-align: middle;display: table;}
    .weui_uploader_file {float: left;margin-right: 9px;margin-bottom: 9px;width: 79px; height: 79px;background: no-repeat 50%;background-size: cover;}
    .info ul li .weui_uploader_files{width:99px;height:99px;}
    .js_file_show{display:none;}
    #ssk{background-color:#FFFFFF;width: 93%;height: 5rem;font-size:2rem;}
    /*地址样式*/
    #divselect .all li{line-height:2rem;padding:5px 1rem;text-indent:0;}
    .half > a img {
      width: 11rem;
      height: 8rem;
       margin-left: 0rem;
       margin-top: 0rem;
    }
    .half > a{background:none;}
   
   
      .ttclass{
            position: absolute;
            top: 28px;
            background:#FFFFFF;
            border-radius: 2px;
            color:#222333
    }
    
    .tclass{
             
             margin: 16px 10px;
            background:#18b4ed;
         
            font-size: 14px;
            border-radius: 2px;
            color:#222333
           
       

    } 
   /* .ttclass{
            position: absolute;
            top: 28px;
            width: 96%;
            margin-top:5rem; 
            margin-left:1rem; 
            margin-bottom:1rem; 
            margin-right:1rem;
            margin: 8px 10px;
            background:#18b4ed;
            line-height: 20px;   
            border-radius: 2px;
            color:#222333

    }
    
    .tclass{
       
            margin: 13px 0px;
            background:#96D6EF;
            line-height: 20px;   
            border-radius: 2px;
         
    }
    */
    textarea {
                margin: 1px 10px;
                padding: 10px;
                border: 1px solid #ccc;
                color: #000;
                font-size: 14px;
                height: 160PX;
                width: 95%;
                box-sizing: border-box;
                overflow: visible;
            }

.comments { 
 width:100%;/*自动适应父布局宽度*/ 
overflow:auto; 
 word-break:break-all; 
 /*在ie中解决断行问题(防止自动变为在一行显示，主要解决ie兼容问题，ie8中当设宽度为100%时，文本域类容超过一行时， 
 当我们双击文本内容就会自动变为一行显示，所以只能用ie的专有断行属性“word-break或word-wrap”控制其断行)*/ 
 } 

  </style>

</head>
  <body>
  <header style="z-index:999" id="statusBar">
  <img onclick="javascript :history.back(-1);" src="../resource/images/rpwbackn.png"/>
  <span>系统信息通知</span>
 
 <!-- <div class="clear"></div>-->
</header>

  <div class="ttclass" id="t0" >

  <div class="tclass" id="t1" >
   <!-- <textarea id="jcnr" name="jcnr" class="comments"  style="height:expression((this.scrollHeight>150)?'150px':(this.scrollHeight+5)+'px');overflow:auto;">
    </textarea>-->
  </div>
 </div>


<div id="loadingToast" style="display:none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content">数据加载中……</p>
    </div>
</div>




	</body>
  
</html>